import upload from '@/utils/upload'
import uploads from '@/utils/uploads'
import request from '@/utils/request'

// 文件上传
export function uploadImage(data) {
  return upload({
    url: '/common/upload',
    filePath: data.filePath
  })
}


// 文件上传
export function uploadFile(data) {
  return upload({
    url: '/common/upload',
    name: data.name,
    filePath: data.filePath
  })
}

// 文件上传
export function uploadFiles(data) {
  return upload({
    url: '/common/uploads',
    name: data.name,
    files: data.files
  })
}